package com.iuv.shortmsg.util;

import java.time.LocalDateTime;

/**
 * IuvDateUtil
 * 时间处理工具类
 * @author Will
 * @date 10:43
 */
public class IuvDateUtil {

    /**
     * 判断当时时间是否在给定时间之前
     * @param date
     * @return
     */
    public static boolean isBeforeDate(LocalDateTime date) {
        boolean isBefore = false;
        if (date != null) {
            isBefore = LocalDateTime.now().isBefore(date);
        }
        return isBefore;
    }
}
